<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">  
  <title>我的发布 - {:cms('title')}</title>
{include file="app/template/pc/default_pc/home_header.html"}
<div class="layui-body" style="padding: 20px;overflow: auto;">
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  <ul class="layui-tab-title">
  	{volist name=":fun_s('model',array('open'=>1),'px desc',100,1)" id="vo"}
    <a href="{:url('index/home/contribute', array('id'=>$vo['id']))}"><li {if condition="$vo['id'] eq $id"}class="layui-this"{/if}>我的{$vo.title}</li></a>
     {/volist}
  </ul>
</div> 
<div style="overflow: auto;">
<table class="layui-table biaoge" lay-size="lg">
  <colgroup>
    <col width="100">
    <col width="500">
    <col width="100">
    <col width="100">
    <col width="100">
    <col>
  </colgroup>
  <thead>
    <tr>
      <th>分类</th>
      <th>标题</th>
      <th>状态</th>
      <th>添加时间</th>
      <th>操作</th>
    </tr> 
  </thead>
  <tbody>
{volist name=":fun_s($model,array('model'=>$id,'uid'=>session('userid')),'settop desc , id desc','10,false',0)" id="vo"}
    <tr>
      <td>{:fun_sc_p('cate', array('id'=>$vo['tid']), 'name')}</td>
      <td><a href="*URL*/s_{:m($vo['model'])}_{$vo.id}.html" target="_blank">{$vo.title}</a>{if condition="$vo['settop'] eq '1'"} <span class="layui-badge layui-bg-orange">顶</span>{/if}</td>
      <td>{if $vo.open eq 0}<span style="padding:5px;color:#FFF;background:green">待审</span>{elseif $vo.open eq 1}正常 {elseif $vo.open eq 2}<span style="padding:5px;color:#FFF;background:red">不通过</span>{else /}<span style="padding:5px;color:#FFF;background:grey">隐藏</span>                        {/if}</td>
      <td>{$vo.time|timeinfo}</td>
      <td><a href="{:url('index/home/edit', array('id'=>$vo['id'],'model'=>$vo['model']))}" class="layui-btn ayui-btn-xs">编辑</a></td>
    </tr>
{/volist}
  </tbody>
</table>
</div> 
<div class="pages">
{:fun_s($model,array('model'=>$id,'uid'=>session('userid')),'settop desc , id desc','10,false',0)->render()}
<div>
</div>
{include file="app/template/pc/default_pc/home_footer.html"}
